package tm.pojo;

import lombok.Data;

/**
 * @author Rocky
 * @create 2022-09-27 14:10
 */
public class LoveQuestionPojo {
    private Integer id;
    private String questionText;
    private QuestionOpstionPojo questionOpstionPojo;

    public LoveQuestionPojo() {
    }

    private LoveQuestionPojo(Builder builder) {
        setId(builder.id);
        setQuestionText(builder.questionText);
        setQuestionOpstionPojo(builder.questionOpstionPojo);
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getQuestionText() {
        return questionText;
    }

    public void setQuestionText(String questionText) {
        this.questionText = questionText;
    }

    public QuestionOpstionPojo getQuestionOpstionPojo() {
        return questionOpstionPojo;
    }

    public void setQuestionOpstionPojo(QuestionOpstionPojo questionOpstionPojo) {
        this.questionOpstionPojo = questionOpstionPojo;
    }

    public static final class Builder {
        private Integer id;
        private String questionText;
        private QuestionOpstionPojo questionOpstionPojo;

        public Builder() {
        }

        public Builder id(Integer val) {
            id = val;
            return this;
        }

        public Builder questionText(String val) {
            questionText = val;
            return this;
        }

        public Builder questionOpstionPojo(QuestionOpstionPojo val) {
            questionOpstionPojo = val;
            return this;
        }

        public LoveQuestionPojo build() {
            return new LoveQuestionPojo(this);
        }
    }
}
